import request from '@/utils/request'

const api_name = '/admin/orders'

export default {
  getList() {
    return request({
      url: `${api_name}`,
      method: 'get'
    })
  },

  getPageCourseList(page, limit, searchObj) {
    return request({
      url: `${api_name}/course/${page}/${limit}`,
      method: 'get',
      params: searchObj // url查询字符串或表单键值对
    })
  },

  getPageVipList(page, limit, searchObj) {
    return request({
      url: `${api_name}/vip/${page}/${limit}`,
      method: 'get',
      params: searchObj // url查询字符串或表单键值对
    })
  },

  getPageCoachList(page, limit, searchObj) {
    return request({
      url: `${api_name}/coach/${page}/${limit}`,
      method: 'get',
      params: searchObj // url查询字符串或表单键值对
    })
  },

}
